<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h2 @click="change">{{msg}}</h2>
        <h2 @click="change" v-once>{{msg}}</h2>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                msg: "我只绑定一次"
            },
            methods: {
                change() {
                    this.msg = "你想改造我吗?"
                }
            }
        });
    </script>
</body>

</html>